DESTDIR = $$PWD/_OUTPUT_

win32:RC_FILE = $$PWD/res/logo.rc
macx:ICON = $$PWD/res/images/logo.icns

RESOURCES += \
    $$PWD/res/app.qrc

##################### MAC OS MAKE PACKAGE ###

macx:release {
#    using "macx_release.sh" to release
#    QMAKE_POST_LINK += macdeployqt $${DESTDIR}/$${TARGET}.app -dmg
}

##################### TRANSLATION LANGUAGE ###
LANGS += \
    zh_rCN

for(lang, LANGS) {
    dirpath = $$PWD/res/i18n/$${lang}

    win32 {
        system("md $${dirpath}")
    } else {
        system("mkdir -p $${dirpath}")
    }

    tspath = $${dirpath}/app_$${lang}.ts
    qmpath = $${dirpath}/app_$${lang}.qm

    TRANSLATIONS += $${tspath}
}
